using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WebControls;
using BusinessLayer;
using InfraStructureLayer;

public partial class Links_default : SFPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
   
    }
    protected bool sfrLinks_NeedsDataSource()
    {
        busLinks insBusLinks = new busLinks();
        DataTable insDataTableLinks = insBusLinks.SelectLinksByLanguageId();
        if (insBusLinks.HasErrors)
        {
            MessageBoxShow(insBusLinks);
            return true;
        }

        sfrLinks.SetData(insDataTableLinks);
        return insBusLinks.HasErrors;
    }
    protected string GenerateUrl(object obj)
    {
        Crypto insCrypto = new Crypto();
        return "~/Handlers/Redirect.ashx?Address=" + insCrypto.EncryptURL(obj.ToString());
    }
}
